Electronic device for recommending composition and operating method thereof

ABSTRACT

An electronic device according to various embodiments may include: a display; an image sensor; and a processor configured to be operatively connected to the display and the image sensor. The processor may be configured to: display a first indicator at a specified position within a preview screen of the image sensor displayed on the display; identify a target on the preview screen; identify a target region corresponding to the identified target among a plurality of candidate target regions including the identified target on the basis of aesthetic scores assigned to the plurality of candidate target regions; display a second indicator corresponding to the identified target region on the preview screen; and when the second indicator is moved to the specified position, generate a photographic image corresponding to the preview screen at a specified time.

CROSS-REFERENCE TO RELATED APPLICATION

This application is based on and claims priority under 35 U.S.C. 119 toKorean Patent Application No. 10-2019-0019561 filed on Feb. 19, 2019 inthe Korean Intellectual Property Office, the disclosure of which isherein incorporated by reference in its entirety.

BACKGROUND 1. Field

Various embodiments relate to an electronic device for recommending anoptimal composition to a user while providing a preview screen of acamera for the user and an operating method thereof.

2. Description of Related Art

Portable electronic devices, such as a smartphone, can provide not onlybasic services, such as phone-calling and texting, but also variouscomplex services, such as photography, multimedia playback, andfinancial services. In particular, portable electronic devices maycapture various types of photographic images (e.g., a still image, amoving image, and a panoramic image) according to a user input. Portableelectronic devices may provide a user with various pieces of additionalinformation for guiding a user about photographing before taking aphotographic image (e.g., to overlap on a preview screen).

The above information is presented as background information only toassist with an understanding of the disclosure. No determination hasbeen made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the disclosure.

SUMMARY

As an example of providing various pieces of additional information forguiding photographing, an electronic device may recommend a compositionby detecting feature elements from an image included on a preview screenand differently arranging specific elements of the detected image or mayprovide a user interface to guide a movement of the center position ofthe preview screen to a target position. However, a known compositionrecommendation method may be used when the composition of a previewimage corresponds to a specific composition (e.g., has similarity to acomposition that is preset and stored within a reference range).Further, a known method of providing a guide user interface does notconsider an actual photographing scenario and may thus operatedifferently from the actual intention of a user (e.g., provides orcontinues providing a guide actually not intended by the user).

An electronic device according to various embodiments may include: adisplay; an image sensor; and a processor configured to be operativelyconnected to the display and the image sensor, wherein the processor maybe configured to: display a first indicator at a specified positionwithin a preview screen of the image sensor displayed on the display;identify a target on the preview screen; identify a target regioncorresponding to the identified target among a plurality of candidatetarget regions including the identified target on the basis of aestheticscores assigned to the plurality of candidate target regions; display asecond indicator corresponding to the identified target region on thepreview screen; and when the second indicator is moved to the specifiedposition, generate a photographic image corresponding to the previewscreen at a specified time.

An operating method of an electronic device including an image sensorand a display according to various embodiments may include: displaying afirst indicator at a specified position within a preview screen of theimage sensor displayed on the display; identifying a target on thepreview screen; identifying a target region corresponding to theidentified target among a plurality of candidate target regionsincluding the identified target on the basis of aesthetic scoresassigned to the plurality of candidate target regions; displaying asecond indicator corresponding to the identified target region on thepreview screen; and when the second indicator is moved to the specifiedposition, generating a photographic image corresponding to the previewscreen at a specified time.

An electronic device and an operating method thereof according tovarious embodiments may provide an optimal composition for a user eventhough an arrangement of objects included in a preview screen image doesnot correspond to a predesignated arrangement.

Further, an electronic device and an operating method thereof accordingto various embodiments may provide a guide appropriate for the intentionof a user in each operation from framing a subject on a preview screento actual photographing.

Before undertaking the DETAILED DESCRIPTION below, it may beadvantageous to set forth definitions of certain words and phrases usedthroughout this patent document: the terms “include” and “comprise,” aswell as derivatives thereof, mean inclusion without limitation; the term“or,” is inclusive, meaning and/or; the phrases “associated with” and“associated therewith,” as well as derivatives thereof, may mean toinclude, be included within, interconnect with, contain, be containedwithin, connect to or with, couple to or with, be communicable with,cooperate with, interleave, juxtapose, be proximate to, be bound to orwith, have, have a property of, or the like; and the term “controller”means any device, system or part thereof that controls at least oneoperation, such a device may be implemented in hardware, firmware orsoftware, or some combination of at least two of the same. It should benoted that the functionality associated with any particular controllermay be centralized or distributed, whether locally or remotely.

Moreover, various functions described below can be implemented orsupported by one or more computer programs, each of which is formed fromcomputer readable program code and embodied in a computer readablemedium. The terms “application” and “program” refer to one or morecomputer programs, software components, sets of instructions,procedures, functions, objects, classes, instances, related data, or aportion thereof adapted for implementation in a suitable computerreadable program code. The phrase “computer readable program code”includes any type of computer code, including source code, object code,and executable code. The phrase “computer readable medium” includes anytype of medium capable of being accessed by a computer, such as readonly memory (ROM), random access memory (RAM), a hard disk drive, acompact disc (CD), a digital video disc (DVD), or any other type ofmemory. A “non-transitory” computer readable medium excludes wired,wireless, optical, or other communication links that transporttransitory electrical or other signals. A non-transitory computerreadable medium includes media where data can be permanently stored andmedia where data can be stored and later overwritten, such as arewritable optical disc or an erasable memory device.

Definitions for certain words and phrases are provided throughout thispatent document, those of ordinary skill in the art should understandthat in many, if not most instances, such definitions apply to prior, aswell as future uses of such defined words and phrases.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present disclosure and itsadvantages, reference is now made to the following description taken inconjunction with the accompanying drawings, in which like referencenumerals represent like parts:

FIG. 1 is a block diagram illustrating an electronic device in a networkenvironment according to various embodiments;

FIG. 2 is a block diagram illustrating a camera module according tovarious embodiments;

FIG. 3 is a block diagram illustrating an electronic device according tovarious embodiments;

FIG. 4 is a flowchart illustrating an operation of an electronic deviceaccording to various embodiments;

FIG. 5 is a flowchart illustrating an operation of an electronic deviceidentifying the photographing intention of a user according to variousembodiments;

FIG. 6 is a flowchart illustrating an operation of an electronic deviceproviding a face position-based recommended composition according tovarious embodiments;

FIG. 7 is a flowchart illustrating an operation of an electronic deviceproviding a whole human body position-based recommended compositionaccording to various embodiments;

FIG. 8 is a flowchart illustrating an operation of an electronic deviceidentifying a target region according to various embodiments;

FIG. 9A illustrates an operation of an electronic device identifying atarget region, and FIG. 9B illustrates an operation of an electronicdevice identifying a target region;

FIG. 10 is a flowchart illustrating an operation of an electronic devicegenerating a photographic image according to various embodiments;

FIG. 11A illustrates an operation of an electronic device generating aphotographic image according to various embodiments, FIG. 11Billustrates an operation of an electronic device generating aphotographic image according to various embodiments, and FIG. 11Cillustrates an operation of an electronic device generating aphotographic image according to various embodiments;

FIG. 12 is a flowchart illustrating an operation of an electronic devicedisplaying an indicator indicating the inclination of the electronicdevice according to various embodiments;

FIG. 13 is a flowchart illustrating an operation of an electronic devicedisplaying an indicator associated with the horizontality of theelectronic device according to various embodiments;

FIG. 14A illustrates an operation of an electronic device generating aphotographic image according to various embodiments, FIG. 14Billustrates an operation of an electronic device generating aphotographic image according to various embodiments, FIG. 14Cillustrates an operation of an electronic device generating aphotographic image according to various embodiments, and FIG. 14Dillustrates an operation of an electronic device generating aphotographic image according to various embodiments;

FIG. 15 is a flowchart illustrating an operation of an electronic devicedetermining whether a guide cancelation intention is recognizedaccording to various embodiments;

FIG. 16 is a flowchart illustrating an operation of an electronic deviceproviding a recommended composition guide again according to variousembodiments;

FIG. 17A, FIG. 17B, and FIG. 17C illustrate operations of an electronicdevice generating a photographic image, according to variousembodiments; and

FIG. 18 illustrates an operation of an electronic device displaying anindicator associated with the horizontality of the electronic deviceaccording to various embodiments.

DETAILED DESCRIPTION

FIGS. 1 through 18, discussed below, and the various embodiments used todescribe the principles of the present disclosure in this patentdocument are by way of illustration only and should not be construed inany way to limit the scope of the disclosure. Those skilled in the artwill understand that the principles of the present disclosure may beimplemented in any suitably arranged system or device.

FIG. 1 is a block diagram illustrating an electronic device 101 in anetwork environment 100 according to various embodiments. Referring toFIG. 1, the electronic device 101 in the network environment 100 maycommunicate with an electronic device 102 via a first network 198 (e.g.,a short-range wireless communication network), or an electronic device104 or a server 108 via a second network 199 (e.g., a long-rangewireless communication network). According to an embodiment, theelectronic device 101 may communicate with the electronic device 104 viathe server 108. According to an embodiment, the electronic device 101may include a processor 120, memory 130, an input device 150, a soundoutput device 155, a display device 160, an audio module 170, a sensormodule 176, an interface 177, a haptic module 179, a camera module 180,a power management module 188, a battery 189, a communication module190, a subscriber identification module (SIM) 196, or an antenna module197. In some embodiments, at least one (e.g., the display device 160 orthe camera module 180) of the components may be omitted from theelectronic device 101, or one or more other components may be added inthe electronic device 101. In some embodiments, some of the componentsmay be implemented as single integrated circuitry. For example, thesensor module 176 (e.g., a fingerprint sensor, an iris sensor, or anilluminance sensor) may be implemented as embedded in the display device160 (e.g., a display).

The processor 120 may execute, for example, software (e.g., a program140) to control at least one other component (e.g., a hardware orsoftware component) of the electronic device 101 coupled with theprocessor 120, and may perform various data processing or computation.According to one embodiment, as at least part of the data processing orcomputation, the processor 120 may load a command or data received fromanother component (e.g., the sensor module 176 or the communicationmodule 190) in volatile memory 132, process the command or the datastored in the volatile memory 132, and store resulting data innon-volatile memory 134. According to an embodiment, the processor 120may include a main processor 121 (e.g., a central processing unit (CPU)or an application processor (AP)), and an auxiliary processor 123 (e.g.,a graphics processing unit (GPU), an image signal processor (ISP), asensor hub processor, or a communication processor (CP)) that isoperable independently from, or in conjunction with, the main processor121. Additionally or alternatively, the auxiliary processor 123 may beadapted to consume less power than the main processor 121, or to bespecific to a specified function. The auxiliary processor 123 may beimplemented as separate from, or as part of the main processor 121.

The auxiliary processor 123 may control at least some of functions orstates related to at least one component (e.g., the display device 160,the sensor module 176, or the communication module 190) among thecomponents of the electronic device 101, instead of the main processor121 while the main processor 121 is in an inactive (e.g., sleep) state,or together with the main processor 121 while the main processor 121 isin an active state (e.g., executing an application). According to anembodiment, the auxiliary processor 123 (e.g., an image signal processoror a communication processor) may be implemented as part of anothercomponent (e.g., the camera module 180 or the communication module 190)functionally related to the auxiliary processor 123.

The memory 130 may store various data used by at least one component(e.g., the processor 120 or the sensor module 176) of the electronicdevice 101. The various data may include, for example, software (e.g.,the program 140) and input data or output data for a command relatedthereto. The memory 130 may include the volatile memory 132 or thenon-volatile memory 134.

The program 140 may be stored in the memory 130 as software, and mayinclude, for example, an operating system (OS) 142, middleware 144, oran application 146.

The input device 150 may receive a command or data to be used by othercomponents (e.g., the processor 120) of the electronic device 101, fromthe outside (e.g., a user) of the electronic device 101. The inputdevice 150 may include, for example, a microphone, a mouse, a keyboard,or a digital pen (e.g., a stylus pen).

The sound output device 155 may output sound signals to the outside ofthe electronic device 101. The sound output device 155 may include, forexample, a speaker or a receiver. The speaker may be used for generalpurposes, such as playing multimedia or playing record, and the receivermay be used for incoming calls. According to an embodiment, the receivermay be implemented as separate from, or as part of the speaker.

The display device 160 may visually provide information to the outside(e.g., a user) of the electronic device 101. The display device 160 mayinclude, for example, a display, a hologram device, or a projector andcontrol circuitry to control a corresponding one of the display,hologram device, and projector. According to an embodiment, the displaydevice 160 may include touch circuitry adapted to detect a touch, orsensor circuitry (e.g., a pressure sensor) adapted to measure theintensity of force incurred by the touch.

The audio module 170 may convert a sound into an electrical signal andvice versa. According to an embodiment, the audio module 170 may obtainthe sound via the input device 150, or output the sound via the soundoutput device 155 or a headphone of an external electronic device (e.g.,an electronic device 102) directly (e.g., wiredly) or wirelessly coupledwith the electronic device 101.

The sensor module 176 may detect an operational state (e.g., power ortemperature) of the electronic device 101 or an environmental state(e.g., a state of a user) external to the electronic device 101, andthen generate an electrical signal or data value corresponding to thedetected state. According to an embodiment, the sensor module 176 mayinclude, for example, a gesture sensor, a gyro sensor, an atmosphericpressure sensor, a magnetic sensor, an acceleration sensor, a gripsensor, a proximity sensor, a color sensor, an infrared (IR) sensor, abiometric sensor, a temperature sensor, a humidity sensor, or anilluminance sensor.

The interface 177 may support one or more specified protocols to be usedfor the electronic device 101 to be coupled with the external electronicdevice (e.g., the electronic device 102) directly (e.g., wiredly) orwirelessly. According to an embodiment, the interface 177 may include,for example, a high definition multimedia interface (HDMI), a universalserial bus (USB) interface, a secure digital (SD) card interface, or anaudio interface.

A connecting terminal 178 may include a connector via which theelectronic device 101 may be physically connected with the externalelectronic device (e.g., the electronic device 102). According to anembodiment, the connecting terminal 178 may include, for example, a HDMIconnector, a USB connector, a SD card connector, or an audio connector(e.g., a headphone connector).

The haptic module 179 may convert an electrical signal into a mechanicalstimulus (e.g., a vibration or a movement) or electrical stimulus whichmay be recognized by a user via his tactile sensation or kinestheticsensation. According to an embodiment, the haptic module 179 mayinclude, for example, a motor, a piezoelectric element, or an electricstimulator.

The camera module 180 may capture a still image or moving images.According to an embodiment, the camera module 180 may include one ormore lenses, image sensors, image signal processors, or flashes.

The power management module 188 may manage power supplied to theelectronic device 101. According to one embodiment, the power managementmodule 188 may be implemented as at least part of, for example, a powermanagement integrated circuit (PMIC).

The battery 189 may supply power to at least one component of theelectronic device 101. According to an embodiment, the battery 189 mayinclude, for example, a primary cell which is not rechargeable, asecondary cell which is rechargeable, or a fuel cell.

The communication module 190 may support establishing a direct (e.g.,wired) communication channel or a wireless communication channel betweenthe electronic device 101 and the external electronic device (e.g., theelectronic device 102, the electronic device 104, or the server 108) andperforming communication via the established communication channel. Thecommunication module 190 may include one or more communicationprocessors that are operable independently from the processor 120 (e.g.,the application processor (AP)) and supports a direct (e.g., wired)communication or a wireless communication. According to an embodiment,the communication module 190 may include a wireless communication module192 (e.g., a cellular communication module, a short-range wirelesscommunication module, or a global navigation satellite system (GNSS)communication module) or a wired communication module 194 (e.g., a localarea network (LAN) communication module or a power line communication(PLC) module). A corresponding one of these communication modules maycommunicate with the external electronic device via the first network198 (e.g., a short-range communication network, such as Bluetooth™,wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA))or the second network 199 (e.g., a long-range communication network,such as a cellular network, the Internet, or a computer network (e.g.,LAN or wide area network (WAN)). These various types of communicationmodules may be implemented as a single component (e.g., a single chip),or may be implemented as multi components (e.g., multi chips) separatefrom each other. The wireless communication module 192 may identify andauthenticate the electronic device 101 in a communication network, suchas the first network 198 or the second network 199, using subscriberinformation (e.g., international mobile subscriber identity (IMSI))stored in the subscriber identification module 196.

The antenna module 197 may transmit or receive a signal or power to orfrom the outside (e.g., the external electronic device) of theelectronic device 101. According to an embodiment, the antenna module197 may include an antenna including a radiating element composed of aconductive material or a conductive pattern formed in or on a substrate(e.g., PCB). According to an embodiment, the antenna module 197 mayinclude a plurality of antennas. In such a case, at least one antennaappropriate for a communication scheme used in the communicationnetwork, such as the first network 198 or the second network 199, may beselected, for example, by the communication module 190 (e.g., thewireless communication module 192) from the plurality of antennas. Thesignal or the power may then be transmitted or received between thecommunication module 190 and the external electronic device via theselected at least one antenna. According to an embodiment, anothercomponent (e.g., a radio frequency integrated circuit (RFIC)) other thanthe radiating element may be additionally formed as part of the antennamodule 197.

At least some of the above-described components may be coupled mutuallyand communicate signals (e.g., commands or data) therebetween via aninter-peripheral communication scheme (e.g., a bus, general purposeinput and output (GPIO), serial peripheral interface (SPI), or mobileindustry processor interface (MIPI)).

According to an embodiment, commands or data may be transmitted orreceived between the electronic device 101 and the external electronicdevice 104 via the server 108 coupled with the second network 199. Eachof the electronic devices 102 and 104 may be a device of a same type as,or a different type, from the electronic device 101. According to anembodiment, all or some of operations to be executed at the electronicdevice 101 may be executed at one or more of the external electronicdevices 102, 104, or 108. For example, if the electronic device 101should perform a function or a service automatically, or in response toa request from a user or another device, the electronic device 101,instead of, or in addition to, executing the function or the service,may request the one or more external electronic devices to perform atleast part of the function or the service. The one or more externalelectronic devices receiving the request may perform the at least partof the function or the service requested, or an additional function oran additional service related to the request, and transfer an outcome ofthe performing to the electronic device 101. The electronic device 101may provide the outcome, with or without further processing of theoutcome, as at least part of a reply to the request. To that end, acloud computing, distributed computing, or client-server computingtechnology may be used, for example.

The electronic device according to various embodiments may be one ofvarious types of electronic devices. The electronic devices may include,for example, a portable communication device (e.g., a smartphone), acomputer device, a portable multimedia device, a portable medicaldevice, a camera, a wearable device, or a home appliance. According toan embodiment of the disclosure, the electronic devices are not limitedto those described above.

It should be appreciated that various embodiments of the presentdisclosure and the terms used therein are not intended to limit thetechnological features set forth herein to particular embodiments andinclude various changes, equivalents, or replacements for acorresponding embodiment. With regard to the description of thedrawings, similar reference numerals may be used to refer to similar orrelated elements. It is to be understood that a singular form of a nouncorresponding to an item may include one or more of the things, unlessthe relevant context clearly indicates otherwise. As used herein, eachof such phrases as “A or B,” “at least one of A and B,” “at least one ofA or B,” “A, B, or C,” “at least one of A, B, and C,” and “at least oneof A, B, or C,” may include any one of, or all possible combinations ofthe items enumerated together in a corresponding one of the phrases. Asused herein, such terms as “1st” and “2nd,” or “first” and “second” maybe used to simply distinguish a corresponding component from another,and does not limit the components in other aspect (e.g., importance ororder). It is to be understood that if an element (e.g., a firstelement) is referred to, with or without the term “operatively” or“communicatively”, as “coupled with,” “coupled to,” “connected with,” or“connected to” another element (e.g., a second element), it means thatthe element may be coupled with the other element directly (e.g.,wiredly), wirelessly, or via a third element.

As used herein, the term “module” may include a unit implemented inhardware, software, or firmware, and may interchangeably be used withother terms, for example, “logic,” “logic block,” “part,” or“circuitry”. A module may be a single integral component, or a minimumunit or part thereof, adapted to perform one or more functions. Forexample, according to an embodiment, the module may be implemented in aform of an application-specific integrated circuit (ASIC).

Various embodiments as set forth herein may be implemented as software(e.g., the program 140) including one or more instructions that arestored in a storage medium (e.g., internal memory 136 or external memory138) that is readable by a machine (e.g., the electronic device 101).For example, a processor (e.g., the processor 120) of the machine (e.g.,the electronic device 101) may invoke at least one of the one or moreinstructions stored in the storage medium, and execute it, with orwithout using one or more other components under the control of theprocessor. This allows the machine to be operated to perform at leastone function according to the at least one instruction invoked. The oneor more instructions may include a code generated by a complier or acode executable by an interpreter. The machine-readable storage mediummay be provided in the form of a non-transitory storage medium. Wherein,the term “non-transitory” simply means that the storage medium is atangible device, and does not include a signal (e.g., an electromagneticwave), but this term does not differentiate between where data issemi-permanently stored in the storage medium and where the data istemporarily stored in the storage medium.

According to an embodiment, a method according to various embodiments ofthe disclosure may be included and provided in a computer programproduct. The computer program product may be traded as a product betweena seller and a buyer. The computer program product may be distributed inthe form of a machine-readable storage medium (e.g., compact disc readonly memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded)online via an application store (e.g., PlayStore™), or between two userdevices (e.g., smart phones) directly. If distributed online, at leastpart of the computer program product may be temporarily generated or atleast temporarily stored in the machine-readable storage medium, such asmemory of the manufacturer's server, a server of the application store,or a relay server.

According to various embodiments, each component (e.g., a module or aprogram) of the above-described components may include a single entityor multiple entities. According to various embodiments, one or more ofthe above-described components may be omitted, or one or more othercomponents may be added. Alternatively or additionally, a plurality ofcomponents (e.g., modules or programs) may be integrated into a singlecomponent. In such a case, according to various embodiments, theintegrated component may still perform one or more functions of each ofthe plurality of components in the same or similar manner as they areperformed by a corresponding one of the plurality of components beforethe integration. According to various embodiments, operations performedby the module, the program, or another component may be carried outsequentially, in parallel, repeatedly, or heuristically, or one or moreof the operations may be executed in a different order or omitted, orone or more other operations may be added.

FIG. 2 is a block diagram 200 illustrating a camera module 180 accordingto various embodiments. Referring to FIG. 2, the camera module 180 mayinclude a lens assembly 210, a flash 220, an image sensor 230, an imagestabilizer 240, a memory 250 (e.g., a buffer memory), or an image signalprocessor 260. The lens assembly 210 may collect light emitted from asubject that is an object to be photographed. The lens assembly 210 mayinclude one or more lenses. According to an embodiment, the cameramodule 180 may include a plurality of lens assemblies 210. In this case,the camera module 180 may form, for example, a dual camera, a 360-degreecamera, or a spherical camera. Some of the plurality of lens assemblies210 may have the same lens properties (e.g., view angle, focal length,autofocus, f-number, or optical zoom), or at least one lens assembly mayhave one or more lens properties different from those of another lensassembly. The lens assembly 210 may include, for example, a wide-anglelens or a telephoto lens.

The flash 220 may emit light used to intensify light emitted orreflected from a subject. According to an embodiment, the flash 220 mayinclude one or more light-emitting diodes (e.g., a red-green-blue (RGB)LED, a white LED, an infrared LED, or an ultraviolet LED) or a xenonlamp. The image sensor 230 may convert light, emitted or reflected froma subject and transmitted through the lens assembly 210, into anelectrical signal, thereby obtaining an image corresponding to thesubject. According to an embodiment, the image sensor 230 may includeone image sensor selected from among image sensors having differentproperties, for example, an RGB sensor, a black and white (BW) sensor,an IR sensor, or a UV sensor, a plurality of image sensors having thesame properties, or a plurality of image sensors having differentproperties. Each image sensor included in the image sensor 230 may beconfigured, for example, using a charge-coupled device (CCD) sensor or acomplementary metal-oxide semiconductor (CMOS) sensor.

The image stabilizer 240 may move at least one lens included in the lensassembly 210 or the image sensor 230 in a particular direction or maycontrol an operational characteristic of the image sensor 230 (e.g.,adjust read-out timing) in response to the movement of the camera module180 or the electronic device 101 including the same, thus compensatingfor at least part of the negative impact of the movement on a capturedimage. According to an embodiment, the image stabilizer 240 may detectthe movement of the camera module 180 or the electronic device 101 usinga gyro sensor or an acceleration sensor disposed inside or outside thecamera module 180. According to an embodiment, the image stabilizer 240may be configured, for example, as an optical image stabilizer. Thememory 250 may at least temporarily store at least a portion of an imageobtained via the image sensor 230 for a subsequent image processingoperation. For example, when obtaining an image is delayed due to ashutter or a plurality of images is obtained at a high speed, anobtained original image (e.g., a Bayer-patterned image orhigh-resolution image) is stored in the memory 250, and a correspondingduplicate image (e.g., a low-resolution image) may be previewed througha display device 160. Subsequently, when a specified condition issatisfied (e.g., according to a user input or a system command), atleast a portion of the original image stored in the memory 250 may beobtained and processed, for example, by the image signal processor 260.According to an embodiment, the memory 250 may be configured as at leasta part of the memory 130 or as a separate memory operating independentlyof the memory 130.

The image signal processor 260 may perform one or more types of imageprocessing on an image obtained through the image sensor 230 or an imagestored in the memory 250. The one or more types of image processing mayinclude, for example, depth map generation, three-dimensional modeling,panorama generation, feature point extraction, image synthesis, or imagecalibration (e.g., noise reduction, resolution adjustment, brightnessadjustment, blurring, sharpening, or softening). Additionally oralternatively, the image signal processor 260 may control at least one(e.g., the image sensor 230) of components included in the camera module180 (e.g., exposure time control or read-out timing control). An imageprocessed by the image signal processor 260 may be stored back in thememory 250 for further processing or may be provided to a component(e.g., the memory 130, the display device 160, the electronic device102, the electronic device 104, or the server 108) outside the cameramodule 180. According to an embodiment, the image signal processor 260may be configured as at least a part of the processor 120 or as aseparate processor operating independently of the processor 120. Whenthe image signal processor 260 is configured as a separate processorfrom the processor 120, at least one image processed by the image signalprocessor 260 may be displayed on the display device 160 as it is orafter additional image processing by the processor 120.

According to an embodiment, the electronic device 101 may include aplurality of camera modules 180 respectively having different propertiesor functions. In this case, for example, at least one of the pluralityof camera modules 180 may be a wide-angle camera, and at least anothermay be a telephoto camera. Likewise, at least one of the plurality ofcamera modules 180 may be a front camera, and at least another may be arear camera.

FIG. 3 is a block diagram illustrating an electronic device according tovarious embodiments.

Referring to FIG. 3, the electronic device 101 may include a processor120, a memory 130, a display device 160, a camera module 180, and amotion sensor 360.

In an embodiment, the memory 130 may store an instruction (or a set ofinstructions or an application) for implementing various embodiments. Inan embodiment, the memory 130 may store threshold value information forimplementing various embodiments. In an embodiment, the memory 130 maystore information about a statistical model or a statistical engine(e.g., a machine-learning model) for implementing various embodiments.

In an embodiment, the display device 160 may display a preview screen ofthe camera module 180 (or an image sensor). The display device 160 maydisplay the preview screen on the basis of a plurality of image framesobtained from the camera module 180. The preview screen displayed on thedisplay device 160 may be periodically updated. In an embodiment, thedisplay device 160 may display various user interfaces (e.g., anindicator) for recommending a composition to overlap the preview screen.For example, the display device 160 may display an indicator indicatinga particular position of the preview screen or a specified position(e.g., the center of the preview screen) to overlap the preview screen.

In an embodiment, the camera module 180 may obtain a plurality of imageframes. The plurality of obtained image frames may be used to update apreview screen or to generate a photographic image.

In an embodiment, the motion sensor 360 may obtain sensing data relatedto the movement of the electronic device 101. The motion sensor 360 maycorrespond to the sensor module 176 illustrated in FIG. 1. For example,the motion sensor 360 may obtain sensing data related to a movement ofthe electronic device 101. In another example, the motion sensor 360 mayobtain sensing data related to the rotation or tilting of the electronicdevice 101.

In an embodiment, the processor 120 may include a photographingintention identification module 310, an optimal compositiondetermination module 320, a guide providing module 330, a trackingmodule 340, and a photographic image generation module 350. Theprocessor 120 may load a command or data to perform at least onefunction or operation specified in each of the photographing intentionidentification module 310, the optimal composition determination module320, the guide providing module 330, the tracking module 340, and thephotographic image generation module 350 into the memory 130 (e.g., thevolatile memory 132) and may process the loaded command or data. Theprocessor 120 may be operatively or electrically connected to the memory130, the display device 160, the camera module 180, and the motionsensor 360 to exchange data or signals.

In an embodiment, the photographing intention identification module 310may identify the photographing intention of a user. In an embodiment,the photographing intention may correspond to a user intention ofobtaining an image displayed on a current preview screen as aphotographic image, that is, a user intention just before pressing aphotographing icon.

In an embodiment, the photographing intention identification module 310may operate after executing a camera application installed in theelectronic device 101 (and activating the camera module 180). Forexample, the photographing intention identification module 310 mayoperate when the preview screen of the camera module 180 is displayed onthe display device 160.

In an embodiment, the photographing intention identification module 310may check whether the electronic device 101 is in a stable situation inorder to identify the photographing intention. To check whether theelectronic device 101 is in the stable situation, the photographingintention identification module 310 may use a plurality of image framesobtained through the camera module 180 or sensing information obtainedthrough the motion sensor 360.

In an embodiment, the photographing intention identification module 310may identify the photographing intention of the user on the basis ofinformation (e.g., autofocus information) about a plurality of imageframes obtained through the camera module 180. For example, thephotographing intention identification module 310 may determine whetherthe number of consecutive frames that are auto-focused among theplurality of image frames obtained through the camera module 180 is afirst threshold value or greater. In an embodiment, the photographingintention identification module 310 may determine whether the number ofconsecutive frames having a brightness difference of a second thresholdvalue or less is a third threshold value or greater.

In an embodiment, the photographing intention identification module 310may identify the photographing intention of the user on the basis ofsensing information related to the movement of the electronic device 101(e.g., sensing information of the acceleration sensor). For example, thephotographing intention identification module 310 may determine whethersensing information related to the movement of the electronic device 101from the motion sensor 360 is maintained at a fourth threshold value orless for a time of a fifth threshold value.

In an embodiment, the photographing intention identification module 310may identify the photographing intention of the user on the basis ofboth the information about the plurality of image frames obtainedthrough the camera module 180 and the sensing information related to themovement of the electronic device 101.

In an embodiment, the optimal composition determination module 320 maydetermine an optimal composition for at least one object included in thepreview screen. In an embodiment, the optimal composition determinationmodule 320 may change a criterion used to determine an optimalcomposition according to the type of at least one object included in thepreview screen. For example, when there is one human face on the previewscreen, the optimal composition determination module 320 may determinean optimal composition on the basis of the human face. In anotherexample, when there is one whole human body on the preview screen, theoptimal composition determination module 320 may determine an optimalcomposition on the basis of the whole human body. In still anotherexample, when the preview screen does not include a human or includestwo or more human bodies, the optimal composition determination module320 may determine an optimal composition on the basis of aestheticsscore assigned to a plurality of regions. In yet another example, whenit is determined that an optimal composition based on aesthetic scoresassigned to a plurality of regions is inappropriate, the optimalcomposition determination module 320 may determine an optimalcomposition on the basis of a predetermined policy or rule.

In an embodiment, the guide providing module 330 may control the displaydevice 160 to display a user interface (e.g., an indicator) for guidingthe user on photographing (or for providing a recommended composition)to the user. For example, the guide providing module 330 may control thedisplay device 160 to display an indicator (e.g., a second indicator)corresponding to a specific object displayed on the preview screen. Whenthe specific object is no longer displayed on the preview screen, theguide providing module 330 may control the display device 160 to nolonger display the indicator corresponding to the specific object. Inanother example, the guide providing module 330 may control the displaydevice 160 to display an indicator (e.g., a first indicator) indicatinga specified position of the preview screen.

In an embodiment, in displaying the indicator (e.g., the secondindicator) corresponding to the specific object displayed on the previewscreen, the guide providing module 330 may change the position of thedisplayed indicator (e.g., the second indicator) according to a movementof the position of the specific object displayed on the preview screen.For example, the position of the specific object displayed on thepreview screen may be changed according to a movement of the electronicdevice 101 or the camera module 180 or a movement of a real objectcorresponding to the specific object, and the guide providing module maychange the position of the displayed indicator (e.g., the secondindicator) according to the changed displayed position.

In an embodiment, the guide providing module 330 may display a message,such as “best shot” or “best composition”, under the second indicator inorder to clearly deliver the meaning of the second indicator whiledisplaying the second indicator.

In an embodiment, the guide providing module 330 may change a displaycharacteristic of at least one of the first indicator and the secondindicator. For example, the guide providing module 330 may change adisplay characteristic of the second indicator according to the changein the position of the displayed second indicator. Specifically, as thesecond indicator gets closer to the first indicator, the secondindicator may be more highlighted than before (e.g., by changing a coloror by increasing brightness or transparency). In another example, whenit is necessary to analyze a newly recommended composition (e.g., when asignificant change in the preview screen is detected or when a movementof the electronic device 101 is detected to an extent of a specifiedvalue or higher), the guide providing module 330 may change at least onedisplay characteristic of the first indicator or the second indicator(e.g., whether to display, a display form, a color, and an animationeffect). In still another example, when the first indicator or thesecond indicator overlaps a human face or main subjects included in thepreview screen, the guide providing module 330 may change thetransparency or density of the overlapping indicator or may change theposition of the displayed overlapping indicator.

In an embodiment, the tracking module 340 may track the indicator (e.g.,the second indicator) corresponding to the specific object displayed onthe preview screen or whether the indicator is moved to a specifiedposition of the screen. In an embodiment, the tracking module 340 maytrack whether the indicator is moved to the specified position of thescreen by updating the position of the indicator corresponding to thespecific object every image frame obtained from the camera module 180.In an embodiment, the tracking module 340 may track the indicator usinga predetermined tracking algorithm. In an embodiment, the trackingmodule 340 may also track the indicator using a face region of interest.For example, the tracking module may track the indicator using the faceregion of interest in providing a face position-based recommendedcomposition in operation 630 of FIG. 6.

In an embodiment, the photographic image generation module 350 maygenerate a photographic image.

The photographic image generation module 350 may generate a photographicimage corresponding to a specific time. The photographic imagegeneration module 350 may generate a photographic image corresponding toa preview screen at a specific time point. The photographic imagegeneration module 350 may generate a photographic image having a higherquality (e.g., a higher resolution) than that of the preview screen.

In an embodiment, the photographic image generation module 350 maygenerate a photographic image on the basis of a user input, and maygenerate a photographic image even without any user input when acondition related to an indicator displayed on a preview screen and/or aspecific condition related to a horizontal state (or tilting state) ofthe electronic device 101 is satisfied.

For example, the photographic image generation module 350 may generate aphotographic image on the basis of a user input (or in response to theuser input) via an icon for photographing or capturing (e.g., a shutterbutton 915 of FIG. 9A).

In another example, when at least a portion of the second indicatorcorresponding to the specific object displayed on the preview screenoverlaps at least a portion of the first indicator indicating thespecified position of the preview screen, the photographic imagegeneration module 350 may generate a photographic image corresponding toa time when the indicators overlap even though there is no user inputvia the icon for photographing or capturing.

In still another example, when at least a portion of the secondindicator corresponding to the specific object displayed on the previewscreen overlaps at least a portion of the first indicator indicating thespecified position of the preview screen and the angle of the electronicdevice 101 tilted from a reference axis (e.g., the vertical axis orz-axis) in a reference direction (e.g., the y-axis) is within aspecified range (e.g., from −3 degrees to +3 degrees), the photographicimage generation module 350 may generate a photographic imagecorresponding to a time when the indicators overlap or the angle of thetilted electronic device 101 enters the specified range even thoughthere is no user input via the icon for photographing or capturing.

FIG. 4 is a flowchart illustrating an operation of an electronic deviceaccording to various embodiments.

At least one operation illustrated in FIG. 4 may be performed by theelectronic device 101 or a processor 120.

In an embodiment, the processor 120 may display a first indicatorcorresponding to a specified position of a preview screen in operation410. Hereinafter, a display operation of the processor may represent anoperation of the processor 120 controlling a display device 160. Forexample, the processor 120 may control the display device 160 to displaythe first indicator corresponding to the specified position of thepreview screen. The display device 160 may display the first indicatorat the center of the preview screen. In an embodiment, the firstindicator may be fixed at the specified position (e.g., the center) ofthe preview screen regardless of a movement of the electronic device101.

In an embodiment, the processor 120 may identify a target in operation420. The processor 120 may identify the target included in the previewscreen displayed on the display device 160. The processor 120 mayidentify the target among a plurality of objects included in the previewscreen. The identified target may be one of the plurality of objectsincluded in the preview screen or a combination of two or more objects.

For example, referring to FIG. 9A, the processor 120 may identify atarget 910 included in a preview screen.

In an embodiment, the processor 120 may identify the target among theplurality of objects on the basis of at least one of an area occupied inthe preview screen, a color, a type (or priority assigned to a pluralityof types), and geometric characteristics. For example, the processor 120may identify the target on the basis of an object occupying the largestarea in the preview screen among the plurality of objects. In anotherexample, the processor 120 may identify the target among the pluralityof objects on the basis of an object that is most significantlydifferent in color from another object (or background). In still anotherexample, the processor 120 may identify the target on the basis of anobject of a type having the highest priority (e.g., a human) among theplurality of objects.

In an embodiment, the processor 120 may identify a target region inoperation 430. The processor 120 may identify one target region among aplurality of candidate target regions including the identified target.For example, the processor 120 may assign scores calculated according toa predetermined criterion to the plurality of candidate target regionsand may identify one target region on the basis of the assigned scores.

In this case, the processor 120 may display the first indicator togetherwith a visual effect of flickering while identifying the target regionor while identifying the target, and may restrict the visual effect offlickering when the target region is completely identified.

In an embodiment, the processor 120 may display a second indicatorcorresponding to the target region in operation 440. For example, thedisplay device 160 may display the second indicator at the center of thetarget region identified in operation 430. In an embodiment, theposition of the displayed second indicator may be changed on the previewscreen according to a movement of the electronic device 101. Forexample, when the electronic device 101 moves to the right, the positionof the displayed second indicator may be moved to the left on thepreview screen.

For example, referring to FIG. 11A, the processor 120 may display asecond indicator 1120 corresponding to a target region 1125 and a firstindicator 1110 corresponding to a specified position of a previewscreen. The electronic device 101 may display the first indicator 1110and the second indicator 1120, thereby guiding the second indicator 1120to move to the specified position 1110 of the screen.

In an embodiment, the processor 120 may display the second indicator tobe positioned on the same reference line (reference vertical line,horizontal left reference line, or diagonal line) as the firstindicator. In an embodiment, the processor 120 may identify the type ofan object included in the preview screen, and may display the secondindicator to be positioned on the same reference line as the firstindicator when the type of the identified object satisfies apredetermined condition. For example, when a sky is identified on thepreview screen, the processor 120 may display the second indicator to bepositioned on a horizontal reference line that divides the previewscreen into two parts up and down. In this case, the processor 120 mayguide the second indicator to move along the horizontal reference line,and may reduce the size of the second indicator or may provide anotification of a specified effect (e.g., a vibration effect) to a userwhen the second indicator is moved in the vertical direction. When ahuman whole body is identified on the preview screen, the processor 120may display the second indicator to be positioned on a horizontalreference line that divides the preview screen into two parts up anddown, in which case the second indicator may be guided to move along thehorizontal reference line. The reason why the second indicator is guidedto move along the horizontal reference line is that the display of theface or the foot of an identified person is likely to be restricted onthe preview screen when the second indicator is moved in the verticaldirection.

In an embodiment, in identifying the type of an object included in apreview screen, the processor 120 may utilize an object detection modelbased on machine learning, and the object detection model is used inoperation 440 or operation 710 of FIG. 7.

The processor 120 may display the first indicator and the secondindicator upon identifying the target region.

In an embodiment, the processor 120 may generate a photographic image inoperation 450.

In an embodiment, the processor 120 may generate a photographic image onthe basis of a user input via an icon for photographing or capturing.When at least a portion of the first indicator displayed on the displaydevice 160 overlaps at least a portion of the second indicator, theprocessor 120 may display a third indicator for proposing or guiding theuser to take a picture with a current composition, and may generate thephotographic image on the basis of a user input via the icon forphotographing or capturing after displaying the third indicator.

In another embodiment, even though there is no user input via the iconfor photographing or capturing, the processor 120 may generate aphotographic image when a condition related to an indicator displayed onthe preview screen is satisfied. For example, when at least a portion ofthe first indicator displayed on the display device 160 overlaps atleast a portion of the second indicator, even though there is no userinput via the icon for photographing or capturing, the processor 120 maygenerate a photographic image on the basis of a time when at least theportion of the first indicator overlaps at least the portion of thesecond indicator. In another example, when at least a portion of thefirst indicator overlaps at least a portion of the second indicator, theprocessor 120 may check different conditions (e.g., an autofocus, theaverage brightness of a preview screen, and the like) related to acamera necessary to identify photographing and may generate aphotographic image according to the result of checking. For example,when the autofocus and the average brightness of the preview screensatisfy specified conditions, the processor 120 may generate aphotographic image on the basis of a time when at least the portion ofthe first indicator overlaps at least the portion of the secondindicator or a time when these conditions are checked. In anotherexample, when at least one of the autofocus and the average brightnessof the preview screen does not satisfy a specified condition, theprocessor 120 may not generate a photographic image, or mayautomatically change a camera setting in order to satisfy the specifiedcondition and may then generate a photographic image on the basis of atime when the camera setting is changed.

In an embodiment, the processor 120 may output a message indicating tothe user that a photographic image is to be generated before generatingthe photographic image. For example, when at least a portion of thefirst indicator overlaps at least a portion of the second indicator, theprocessor 120 may display a message indicating that the currentcomposition is an optimal composition.

In an embodiment, the processor 120 may restrict the display of thefirst indicator, the second indicator, or the third indicator (to bedescribed in FIG. 10) after generating the photographic image.

FIG. 5 is a flowchart illustrating an operation of an electronic deviceidentifying the photographing intention of a user according to variousembodiments.

In an embodiment, at least one operation illustrated in FIG. 5 may beperformed before operation 410 is performed.

In an embodiment, in operation 510, the processor 120 may identifywhether the number of consecutive image frames that are auto-focused isa first threshold value or greater. The processor 120 may identifywhether the number of consecutive image frames that are auto-focusedamong a plurality of image frames obtained by the camera module 180 isthe first threshold value or greater. In an embodiment, since thephotographing intention indicates a user's intention to obtain an imagedisplayed on a current preview screen as a photographic image, it isdesirable to preferentially identify whether auto-focused image framesare consecutively obtained.

In an embodiment, the processor 120 may also identify whetherauto-focused image frames are consecutively obtained for a time of thefirst threshold value or longer.

When the number of consecutive image frames that are auto-focused is thefirst threshold value or greater (Yes in operation 510), the processor120 may perform operation 520. When the number of consecutive imageframes that are auto-focused is less than the first threshold value (Noin operation 510), the processor 120 may repeat operation 510 again.

In an embodiment, in operation 520, the processor 120 may identifywhether the number of consecutive image frames having a brightnessdifference of a second threshold value or less is a third thresholdvalue or greater. The processor 120 may use average brightnessinformation about the preview screen (or an image frame corresponding tothe preview screen). In an embodiment, the processor 120 may performoperation 520 on the consecutive auto-focused mage frames that areidentified in operation 510, and may perform operation 520 on imageframes obtained after the image frames identified in operation 510.

When the number of consecutive image frames having a brightnessdifference of the second threshold value or less is the third thresholdvalue or greater (Yes in operation 520), the processor 120 may performoperation 530. When the number of consecutive image frames having abrightness difference of the second threshold value or less is less thanthe third threshold value (No in operation 520), the processor 120 mayrepeat operation 510.

In an embodiment, in operation 530, the processor 120 may identifywhether sensor data from a motion sensor (e.g., the motion sensor 360 ofFIG. 3) is maintained at a fourth threshold value or less for a time ofa fifth threshold value or longer. In an embodiment, the sensor datafrom the motion sensor may be sensor data (e.g., acceleration sensordata) indicating the amount of movement of the electronic device 101.

When the sensor data from the motion sensor is maintained at the fourththreshold value or less for the time of the fifth threshold value orlonger, the processor 120 may perform operation 610. When the sensordata from the motion sensor is not maintained at the fourth thresholdvalue or less for the time of the fifth threshold value or longer, theprocessor 120 may repeat operation 510.

Through the embodiment disclosed in FIG. 5, the processor 120 mayidentify whether the electronic device 101 is maintained in a stablestate for a specified time. During the specified time, consecutive imageframes that are auto-focused are obtained, the average brightnessdifference between the obtained image frames may be the second thresholdvalue or less, and sensor data from the motion sensor may be maintainedat the fourth threshold value or lower.

FIG. 6 is a flowchart illustrating an operation of an electronic deviceproviding a face position-based recommended composition according tovarious embodiments.

In an embodiment, at least one operation illustrated in FIG. 6 may beperformed after at least one operation illustrated in FIG. 5 isperformed and before operation 410 of FIG. 4 is performed.

In an embodiment, the processor 120 may identify whether a human faceexists in a preview screen in operation 610. In an embodiment, theprocessor 120 may identify whether a human face exists among a pluralityof objects included in a preview screen on the basis of at least one ofan outline shape, a color, and an arrangement of characteristic elements(e.g., eyes, nose, mouth, and the like). In another embodiment, theprocessor 120 may identify whether a human face exists in a previewscreen by inputting a preview screen image into a statistical modeltrained on the basis of machine learning.

When there is no human face in the preview screen (No in operation 610),the processor 120 may perform operation 710. When there is a human facein the preview screen (Yes in operation 610), the processor 120 mayperform operation 620.

In an embodiment, the processor 120 may identify whether the number ofhuman faces is included within a specified range in operation 620. Theprocessor 120 may identify whether the number of human faces identifiedin operation 610 is included in the specified range. For example, thespecified range may be from 1 to 3.

When the number of human faces is not included in the specified range,the processor 120 may perform operation 710.

When the number of human faces is included in the specified range, theprocessor 120 may provide a face position-based recommended compositionin operation 630. The processor 120 may provide a recommendedcomposition for positioning a human face or human faces at a specifiedposition of the preview screen. The processor 120 may determine thespecified position of the preview screen on the basis of the size of ahuman face. When there is one human face, the processor 120 maydetermine the specified position of the preview screen on the basis ofthe direction that the face is looking. For example, when the human faceis looking to the left, the processor 120 may provide a recommendedcomposition for positioning the human face in a right region of thepreview screen.

In an embodiment, in providing a recommended composition, the processor120 may display an arrow or a recommended movement trajectory on thepreview screen.

In an embodiment, the processor 120 may generate a photographic image inoperation 640. For example, the processor 120 may provide a recommendedcomposition on the basis of a face position and may then generate aphotographic image in response to a user input to move the electronicdevice 101 according to the provided recommended composition. In anotherexample, the processor 120 may generate a photographic image in responseto a user input to move the electronic device 101 according to aprovided recommended composition and a user input via an icon forphotographing or capturing.

FIG. 7 is a flowchart illustrating an operation of an electronic deviceproviding a whole human body position-based recommended compositionaccording to various embodiments.

In an embodiment, at least one operation illustrated in FIG. 7 may beperformed after at least one operation illustrated in FIG. 6 isperformed and before operation 410 of FIG. 4 is performed.

In an embodiment, the processor 120 may identify whether a whole humanbody is detected in operation 710. In an embodiment, when there is nohuman face in a preview screen or the number of human faces in the inpreview screen is not included in a specified range (e.g., from 1 to 3),the processor 120 may identify whether a whole human body is detected inthe preview screen. In identifying whether a whole human body isdetected, the processor 120 may utilize an object detection model (or anobject detection engine) based on machine learning. The processor 120may provide a recommended composition according to the result ofdetection using the object detection model based on the machinelearning. Even though a whole human body is not detected, it is possibleto provide a recommended composition specialized for a detected objectaccording to the type of the detected object through the objectdetection model based on machine learning.

In an embodiment, the processor 120 may also identify whether a wholehuman body having a specified size or greater is detected. The processor120 may perform operation 720 when a whole human body having a specifiedsize or greater is detected. The processor 120 may identify whether awhole human body having a specified size or greater is detected, therebyidentifying whether a main subject on the preview screen is a wholehuman body.

In an embodiment, the processor 120 may provide a recommendedcomposition based on the position of a whole human body in operation720. The processor 120 may provide a recommended composition forpositioning the whole human body at a specified position of the previewscreen. The processor 120 may determine the specified position of thepreview screen on the basis of the size of the whole human body and thenumber of people.

In an embodiment, the processor 120 may calibrate the providedrecommended composition. For example, the processor 120 may calibratethe provided recommended composition in order to position the wholehuman body at the specified position of the preview screen so that ahuman head, hands, or feet are not out of the screen.

In an embodiment, the processor 120 may omit or bypass providing therecommended composition or calibrating the provided recommendedcomposition according to the type of an object detected through theobject detection model based on machine learning.

In an embodiment, the processor 120 may generate a photographic image inoperation 730. For example, the processor 120 may provide a recommendedcomposition on the basis of the position of a human whole body and maythen generate a photographic image in response to a user input to movethe electronic device 101 according to the provided recommendedcomposition.

FIG. 8 is a flowchart illustrating an operation of an electronic deviceidentifying a target region according to various embodiments.

In an embodiment, at least one operation illustrated in FIG. 8 may be adetailed flowchart of operation 430 of FIG. 4.

In an embodiment, the processor 120 may identify a plurality ofcandidate target regions including an identified target in operation810. The processor 120 may identify a plurality of cropped regions of apreview screen including the identified target as a plurality ofcandidate target regions.

For example, referring to FIG. 9B, the processor 120 may identify aplurality of candidate target regions 920 a, 920 b, 920 c, and 920 dincluding an identified target 910.

In an embodiment, the processor 120 may determine aesthetic scorescorresponding to the plurality of identified candidate target regions inoperation 820.

In an embodiment, the processor 120 may determine aesthetic scorescorresponding to the plurality of identified candidate target regionsusing a statistical model trained on the basis of machine learning. Forexample, the processor 120 may determine aesthetic scores correspondingto the plurality of identified candidate target regions using anadjustment region detection algorithm.

In an embodiment, the statistical model trained on the basis of machinelearning may be trained on the basis of user data (e.g., userpreference).

In an embodiment, the processor 120 may identify whether the maximumaesthetic score is a threshold value or greater in operation 830. Forexample, the processor 120 may identify whether the highest aestheticscore among the aesthetic scores corresponding to the plurality ofcandidate target regions is the threshold value or greater.

When the maximum aesthetic score is not the threshold value or greater(Yes in operation 830), the processor 120 may provide a rule-basedrecommended composition in operation 840. For example, the processor 120may detect at least one of a dominant line, a vanishing point, and asalience region in the preview screen and may provide a recommendedcomposition on the basis of detected information.

In an embodiment, the processor 120 may generate a photographic image inoperation 850. For example, after providing the rule-based recommendedcomposition, the processor 120 may generate a photographic image inresponse to a user input to move the electronic device 101 according tothe provided recommended composition.

When the maximum aesthetic score is the threshold value or greater, theprocessor 120 may determine a candidate target region corresponding tothe maximum aesthetic score as a target region in operation 860. Forexample, referring to FIG. 9B, the processor 120 may determine onecandidate target region 920 a among the plurality of candidate targetregions 920 a, 920 b, 920 c, and 920 d as a target region.

In an embodiment, a rule-based recommended composition (operation 850)may be provided after a recommended composition based on a regionaccording to an aesthetic score is analyzed, and a face position-basedrecommended composition (FIG. 6) and a whole human body position-basedrecommended composition (FIG. 7) may be provided before the recommendedcomposition based on a region according to the aesthetic score isanalyzed. However, this sequence is provided for illustration and is notintended to limit the scope of the disclosure, and it is obvious tothose skilled in the art that the order in which the individualrecommended compositions may be changed.

FIG. 10 is a flowchart illustrating an operation of an electronic devicegenerating a photographic image according to various embodiments.

In an embodiment, at least one operation illustrated in FIG. 10 may be adetailed flowchart of operation 450 of FIG. 4.

In an embodiment, the processor 120 may identify whether the position ofa second indicator on a preview screen corresponds to the position of afirst indicator on the preview screen in operation 1010. For example,the processor 120 may identify whether at least a portion of the secondindicator overlaps at least a portion of the first indicator.

In an embodiment, the second indicator may correspond to an identifiedtarget region and may be displayed at the center of the identifiedtarget region, and the first indicator may correspond to a specifiedposition (e.g., the center) of the preview screen and may be displayedat the specified position on the preview screen.

For example, referring to FIG. 11A and FIG. 11B, the processor 120 mayidentify that at least a portion of a second indicator 1120corresponding to an identified target region 1125 does not overlap atleast a portion of a first indicator 1110.

When the position of the second indicator on the preview screen does notcorrespond to the position of the first indicator on the preview screen(No in operation 1010), the processor 120 may identify whether a guidecancelation intention is recognized in operation 1040. The guidecancelation intention may indicate a user intention that a providedguide (or user interface, e.g., the first indicator and the secondindicator) is unnecessary. For example, when a variance in the positionof the second indicator on the preview screen is a sixth threshold valueor less for a specified time, the processor 120 may determine that theguide cancelation intention is recognized.

When the guide cancelation intention is not recognized (No in operation1040), the processor 120 may repeat operation 1010. That is, since theguide cancelation intention of a user is not recognized, the processor120 may identify again whether the preview screen is changed accordingto a provided guide.

When the guide cancelation intention is recognized (Yes in operation1040), the processor 120 may change a display of the first indicatorand/or the second indicator in operation 1050. For example, theprocessor 120 may control the display device 160 not to display thefirst indicator and/or the second indicator on the preview screenanymore. In another example, the processor 120 may change displaycharacteristics of the first indicator and/or second indicator (changethe shape (e.g., from a circle to an ellipse), the size, the color, orthe transparency).

In an embodiment, the processor 120 may perform operation 1610 afterchanging a display of the first indicator and/or the second indicator.As will be described with reference to FIG. 16, the processor 120 maydetermine whether the user wants to be provided with a different guideby performing an operation illustrated in FIG. 16.

When the position of the second indicator on the preview screencorresponds to the position of the first indicator on the preview screen(Yes in operation 1010), the processor 120 may display a third indicatorto propose taking a picture with a current composition in operation1020.

For example, referring to FIG. 11C, when at least a portion of thesecond indicator 1120 corresponding to the identified target region 1125overlaps at least a portion of the first indicator 1110, the processor120 may display the third indicator 1130 to propose taking a picturewith the current composition. Similarly to the first indicator 1110, thethird indicator 1130 may be displayed at a specified position of thepreview screen (e.g., the center of the preview screen). The thirdindicator 1130 may have display characteristics equivalent or similar tothose of the second indicator 1120. For example, when the firstindicator 1110 is an empty circle and the second indicator 1120 is asolid circle, the third indicator 1130 may be displayed as a solidcircle. The processor 120 may restrict a display of the first indicator1110 and the second indicator 1120 at the same time that the thirdindicator 1130 is displayed.

In an embodiment, the processor 120 may generate a photographic image inoperation 1030.

For example, the processor 120 may generate a photographic image on thebasis of a user input via an icon for photographing or capturing (or inresponse to the user input) after displaying the third indicator.

In another example, the processor 120 may generate a photographic imageindependently of a user input via an icon for photographing or capturingat the same time as displaying the third indicator (or after a specifiedtime from a display of the third indicator).

In an embodiment, the processor 120 may generate a photographic imagecorresponding to an image displayed on the preview screen at a specifictime.

For example, after displaying the third indicator, the processor 120 maygenerate a photographic image corresponding to an image displayed on thepreview screen at a time when a user input via an icon for photographingor capturing is received.

In another example, the processor 120 may generate a photographic imagecorresponding to an image displayed on the preview screen at a time whenthe third indicator is displayed (or at a time after a specified timefrom a display of the third indicator).

FIG. 12 is a flowchart illustrating an operation of an electronic devicedisplaying an indicator indicating the inclination of the electronicdevice according to various embodiments.

In an embodiment, at least one operation illustrated in FIG. 12 may be adetailed flowchart of operation 440 of FIG. 4.

In an embodiment, the processor 120 may display a second indicatorcorresponding to a target region in operation 1210. For example, theprocessor 120 may display the second indicator at the center of thetarget region identified in operation 430.

In an embodiment, the processor 120 may display a fourth indicatorindicating the inclination of the electronic device 101 in operation1220. In an embodiment, the processor 120 may identify the currentlytilting degree of the electronic device 101 using sensing data of arotation sensor or a gyro sensor and may display the fourth indicatoraccording to the result of identification.

In an embodiment, operation 1210 and operation 1220 may be performed ina different order and may be performed in parallel (or substantially atthe same time).

The processor may display the fourth indicator to overlap a previewscreen and may display the fourth indicator adjacently to a firstindicator and/or the second indicator. The processor 120 may display thefourth indicator associated with the inclination of the electronicdevice 101 with respect to a specified axis (e.g., the y-axis assumingthat a vertical direction is the z-axis and a front is the x-axis). Forexample, referring to FIG. 18, when the electronic device 101 is tilted10 degrees in the +y direction (e.g., when the electronic device 101 isrotated 10 degrees clockwise about the x-axis as an rotation axis), theprocessor 120 may display a fourth indicator 1440 having an angle of 10degrees with a virtual vertical reference line 1830. The virtualvertical reference line 1830 may be a line that divides the previewscreen or a display into two parts up and down, and the fourth indicator1440 may correspond to a straight line obtained by rotating the virtualvertical reference line 1830 10 degrees counterclockwise.

According to an embodiment, the angle 1810 of the electronic device 101tilted with respect to a specified axis and the angle 1820 between thefourth indicator 1440 and the virtual vertical reference line 1830 maybe equivalent to or may correspond to each other.

Referring to FIG. 14B, the processor 120 may display a fourth indicator1440. For example, when the electronic device 101 is tilted 10 degreesin the −y direction (e.g., when the electronic device 101 is rotated 10degrees counterclockwise about the x-axis as an rotation axis), theprocessor 120 may display at least one straight line tilted 10 degreesdownward at the right as the fourth indicator 1440. Here, the fourthindicator 1440 may correspond to a straight line obtained by rotatingthe virtual vertical reference line 10 degrees clockwise.

In another embodiment, when the electronic device 101 is not tilted inthe −y direction (or +y direction) or the tilting degree of theelectronic device 101 in the −y direction (or +y direction) is includedwithin a specified range, the processor 120 may display at least onestraight line having an inclination of 0 as the fourth indicator.

After displaying the fourth indicator, the processor 120 may generate aphotographic image in operation 450. As described with reference to FIG.10, the processor 120 may generate a photographic image when a conditionrelated to the first indicator and the second indicator is satisfied(e.g., when the position of the first indicator and the position of thesecond indicator correspond to each other). Further, when the fourthindicator is additionally displayed as illustrated in FIG. 12, theprocessor 120 may generate a photographic image when the conditionrelated to the first indicator and the second indicator and anadditional condition related to the fourth indicator are satisfied.

The processor 120 may identify the current state of the electronicdevice related to horizontality before displaying the fourth indicator.When the current state of the electronic device corresponds tohorizontality, the processor 120 may not display the fourth indicator.When the current state of the electronic device does not correspond tohorizontality, the processor 120 may display the fourth indicator toguide the adjustment of the inclination of the electronic device.

FIG. 13 is a flowchart illustrating an operation of an electronic devicedisplaying an indicator associated with the horizontality of theelectronic device according to various embodiments.

In an embodiment, at least one operation illustrated in FIG. 13 may be adetailed flowchart of operation 1010 or 1020 of FIG. 10.

In an embodiment, in operation 1310, the processor 120 may identifywhether the position of a second indicator on a preview screencorresponds to the position of a first indicator on the preview screenand whether the current state of the electronic device 101 correspondsto horizontality.

In an embodiment, when the position of the second indicator on thepreview screen corresponds to the position of the first indicator on thepreview screen, the processor 120 may identify whether the current stateof the electronic device 101 corresponds to horizontality. When theposition of the second indicator on the preview screen does notcorrespond to the position of the first indicator on the preview screen,the processor 120 may perform operation 1040 regardless of whether thecurrent state of the electronic device 101 corresponds to horizontality,or vice versa.

For example, referring to FIG. 14B, since the position of a secondindicator 1120 on a preview screen does not correspond to the positionof a first indicator 1110 on the preview screen, the processor 120 mayidentify whether a guide cancelation intention is recognized inoperation 1040.

In another example, referring to FIG. 14C, since the position of thesecond indicator 1120 on the preview screen is closer to the position ofthe first indicator 1110 on the preview screen than in FIG. 14B but theposition of the second indicator 1120 on a preview screen still does notcorrespond to the position of the first indicator 1110 on the previewscreen, the processor 120 may identify whether a guide cancelationintention is recognized in operation 1040.

In an embodiment, the processor 120 may determine whether the currentstate of the electronic device 101 corresponds to horizontality on thebasis of sensing data of a motion sensor (e.g., the motion sensor 360 ofFIG. 3). For example, the processor 120 may determine an angle at whichthe electronic device 101 is inclined from a first reference axis (e.g.,the vertical axis or the z-axis) to a second reference axis (e.g., they-axis) and may determine whether the determined angle is included in anangle range corresponding to horizontality. In another example, theprocessor 120 may determine whether the current state of the electronicdevice 101 corresponds to horizontality on the basis of the angle atwhich a fourth indicator is inclined.

When the position of the second indicator on the preview screencorresponds to the position of the first indicator on the preview screenbut the current state of the electronic device 101 does not correspondto horizontality, the processor 120 may identify whether a guidecancelation intention is recognized in operation 1040.

When the position of the second indicator on the preview screencorresponds to the position of the first indicator on the preview screenbut the current state of the electronic device 101 corresponds tohorizontality (Yes in operation 1310), the processor 120 may display afifth indicator to propose taking a picture with a current compositionin operation 1320. The fifth indicator may be a combination of a thirdindicator and an additional indicator. For example, the fifth indicatormay include the third indicator and a straight line having aninclination of 0. By displaying the fifth indicator, the processor 120may report to a user that the current composition corresponds to arecommended composition and the current state of the electronic device101 corresponds to horizontality, and thus it is an appropriate timingto take a photographic image.

For example, referring to FIG. 14D, the processor 120 may display afifth indicator 1150 proposing to take a picture with the currentcomposition. The fifth indicator 1150 may include the third indicator1130 and a straight line having an inclination of 0. The third indicator1130 may indicate that the position of the first indicator 1110 on thepreview screen corresponds to the position of the second indicator 1120on the preview screen, and the straight line having an inclination of 0may indicate that the current state of the electronic device 101corresponds to horizontality.

FIG. 15 is a flowchart illustrating an operation of an electronic devicedetermining whether a guide cancelation intention is recognizedaccording to various embodiments.

In an embodiment, at least one operation illustrated in FIG. 15 may be adetailed flowchart of operation 1040 of FIG. 10.

In an embodiment, in operation 1510, the processor 120 may identifywhether a variance in the position of a second indicator on a previewscreen is a sixth threshold value or less for a specified time.

When the variance in the position of the second indicator on the previewscreen is the sixth threshold value or less for the specified time (Yesin operation 1510), the processor 120 may perform operation 1050. Thatis, the processor 120 may determine that a user intention to change acomposition according to a provided guide (e.g., a first indicator and asecond indicator) is not recognized. Alternatively, the processor 120may determine that a user intention to cancel the provided guide isrecognized.

When the variance in the position of the second indicator on the previewscreen exceeds the sixth threshold value for the specified time (No inoperation 1510), the processor 120 may identify whether the distancebetween the position of the second indicator on the preview screen andthe position of the first indicator on the preview screen increases inoperation 1520. For example, the processor 120 may determine whether thesecond indicator is no longer displayed on the preview screen as theposition of the second indicator on the preview screen becomes distantfrom the position of the first indicator on the preview screen.

When the distance between the position of the second indicator on thepreview screen and the position of the first indicator on the previewscreen increases (Yes in operation 1520), the processor 120 may performoperation 1050. That is, the processor 120 may determine that a userintention to change a composition according to a provided guide (e.g.,the first indicator and the second indicator) is not recognized.Alternatively, the processor 120 may determine that a user intention tocancel the provided guide is recognized.

When the distance between the position of the second indicator on thepreview screen and the position of the first indicator on the previewscreen increases and accordingly the second indicator is no longerdisplayed on the preview screen, the processor 120 may perform operation1050. Alternatively, when the second indicator is not displayed on thepreview screen for a certain time (target loss), the processor 120 mayperform operation 1050.

When the distance between the position of the second indicator on thepreview screen and the position of the first indicator on the previewscreen does not increase (No in operation 1520), the processor 120 mayrepeat operation 1010. That is, the processor 120 may determine that auser intention to cancel the provided guide is not recognized and maythen identify again whether the position of the second indicator on thepreview screen corresponds to the position of the first indicator on thepreview screen.

FIG. 16 is a flowchart illustrating an operation of an electronic deviceproviding a recommended composition guide again according to variousembodiments.

In an embodiment, at least one operation illustrated in FIG. 16 may beperformed after operation 1050 of FIG. 10 is performed.

At least one operation illustrated in FIG. 16 may be performed afteroperation 1030 of FIG. 10 is performed.

In an embodiment, in operation 1610, the processor 120 may identifywhether the distance of a movement between consecutive frames is aseventh threshold or greater. For example, the processor 120 mayidentify whether the distance of a movement between consecutive framesis the seventh threshold or greater on the basis of the position of thesame specific object displayed on consecutive images among a pluralityof image frames obtained by a camera module (e.g., the camera module180). In another example, the processor 120 may identify whether thedistance of a movement between consecutive frames is the sevenththreshold or greater by tracking a specific region (e.g., a centralregion) in the consecutive image frames.

In an embodiment, in operation 1620, the processor 120 may identifywhether the brightness difference between consecutive frames is aneighth threshold value or greater. In an embodiment, the consecutiveframes identified in operation 1620 may be the same as the consecutiveframes identified in operation 1610 or may be frames subsequent to theconsecutive frames identified in operation 1610.

In an embodiment, in operation 1630, the processor 120 may identifywhether sensor data of a motion sensor is a ninth threshold value orgreater. In an embodiment, the motion sensor may be an accelerationsensor, and the sensor data of the motion sensor may be sensor datarelated to movement or acceleration information about the electronicdevice 101.

When the distance of the movement between the consecutive frames is lessthan the seventh threshold (No in operation 1610), the brightnessdifference between the consecutive frames is less than eighth thresholdvalue (No in operation 1620), and the sensor data of the motion sensoris less than the ninth threshold (No in operation 1630), the processor120 may repeat operation 1610. When any one of the three conditions (in1610 to 1630) is satisfied, the processor 120 may determine that a userwants to be provided with a different guide and may perform operation510. That is, the processor 120 may perform the operations illustratedin FIG. 16 in order to prevent inconvenience incurred to the user whenproviding a guide not intended by f the user.

When any one of the three conditions (in 1610 to 1630) is not satisfied,the processor 120 may terminate a corresponding algorithm or maydeactivate an activated camera application instead of repeatingoperation 1610.

FIG. 17 illustrates an operation of an electronic device generating aphotographic image, according to various embodiments.

Referring to FIG. 17A, the processor 120 may display a first indicator1110 corresponding to the center position of a preview screen and asecond indicator 1120 corresponding to the center position of a targetregion 1125 to overlap the preview screen.

In an embodiment, the processor 120 may display the second indicator1120 in a quadrangular form.

In an embodiment, the processor 120 may display the first indicator 1110in a trapezoidal form.

In an embodiment, the processor 120 may identify whether the position ofthe first indicator 1110 on the preview screen corresponds to theposition of the second indicator 1120 on the preview screen. Forexample, referring to FIG. 17B, the processor 120 may identify that anoverlapping region of the first indicator 1110 and the second indicator1120 falls in a specified range (e.g., a first specified range).

In an embodiment, the shape of the second indicator 1120 may be changedaccording to the rotation of the electronic device 101. For example,according to the rotation of the electronic device 101 in terms ofpitch, the shape of the second indicator 1120 may be changed from arectangle to a trapezoid in which upper and lower side are parallel toeach other. In another example, according to the rotation of theelectronic device 101 in terms of yaw, the shape of the second indicator1120 may be changed from a rectangle to a trapezoid in which left andright sides are parallel to each other.

In an embodiment, the processor 120 may detect the rotation of theelectronic device 101. The processor 120 may detect the rotation of theelectronic device 101 in a specified direction. The specified directionmay be inferred from the form of the first indicator 1110 and the formof the second indicator 1120 at a time when the first indicator 1110 andthe second indicator 1120 correspond to each other. For example,referring to FIG. 17B, the second indicator 1120 may correspond to acurrent form of the electronic device 101, and the first indicator 1110may correspond to a recommended form of the electronic device 101.

In an embodiment, the processor 120 may detect the rotation of theelectronic device 101 on the basis of sensor data of a motion sensor. Inan embodiment, when the first indicator 1110 is a parallelogram havingright and left sides parallel to each other, the processor 120 maydetect the rotation of the electronic device in terms of yaw. When thefirst indicator 1110 is a parallelogram in which right and left sidesare parallel to each other and the right side is longer, the processor120 may detect the rotation of the electronic device 101 in a clockwisedirection when viewed in the +z direction.

The processor 120 may detect the rotation of the electronic device 101on the basis of sensor data of a motion sensor. In an embodiment, whenthe first indicator 1110 is a parallelogram having upper and lower sidesparallel to each other, the processor 120 may detect the rotation of theelectronic device in terms of pitch. When the first indicator 1110 is aparallelogram in which upper and lower sides are parallel to each otherand the lower side is longer, the processor 120 may detect the rotationof the electronic device 101 in a clockwise direction when viewed in the+y direction.

In an embodiment, the processor 120 may detect the rotation of theelectronic device 101 by a specified angle in a specified direction.

In an embodiment, the processor 120 may display a separate object forguiding the rotation of the electronic device 101 before detecting therotation of the electronic device 101. For example, the processor 120may display a visual object indicating at least one of the specifieddirection and the specified angle to overlap the preview screen.

In an embodiment, the processor 120 may display a third indicator 1130when the overlapping region of the first indicator 1110 and the secondindicator 1120 falls in a specified range (e.g., a second specifiedrange greater than the first specified range). For example, referring toFIG. 17C, the processor 120 may display the third indicator 1130 whenthe rotation of the electronic device 101 by the specified angle in thespecified direction is detected. The display position and the displayform of the third indicator 1130 may correspond to the display position(center of the preview screen) and the display form (trapezoid) of thefirst indicator 1110. A display characteristic (e.g., color) of thethird indicator 1130 may correspond to a display characteristic of thesecond indicator 1120.

According to the embodiment illustrated in FIG. 17, the electronicdevice 101 may specifically provide a recommended composition to a user.The electronic device 101 may guide not only a movement of theelectronic device 101 in at least one of upward, downward, leftward, andrightward directions but also the rotation of the electronic device in aspecified direction, such as panning, in order to take a picture with anoptimal composition.

The computer-readable storage medium may include a hard disk, a floppydisk, a magnetic medium (e.g., a magnetic tape), an Optical Media (e.g.,CD-ROM, DVD), a Magneto-Optical Media (e.g., a floptical disk), an innermemory, etc. The instruction may include a code made by a complier or acode that can be executed by an interpreter. The programming moduleaccording to the disclosure may include one or more of theaforementioned components or may further include other additionalcomponents, or some of the aforementioned components may be omitted.Operations performed by a module, a programming module, or otherelements according to various embodiments may be executed sequentially,in parallel, repeatedly, or in a heuristic manner. At least someoperations may be executed according to another sequence, may beomitted, or may further include other operations.

Although the present disclosure has been described with variousembodiments, various changes and modifications may be suggested to oneskilled in the art. It is intended that the present disclosure encompasssuch changes and modifications as fall within the scope of the appendedclaims.

What is claimed is:
 1. An electronic device comprising: a displaydevice; an image sensor configured to capture an image of an object; anda processor configured to be operatively connected to the display deviceand the image sensor, wherein the processor is configured to: display afirst indicator at a specified position within a preview screen of theimage displayed on the display device; identify a target on the previewscreen; identify a target region corresponding to the identified targetamong a plurality of candidate target regions comprising the identifiedtarget based on a number of aesthetic scores assigned to the pluralityof candidate target regions; display a second indicator corresponding tothe identified target region on the preview screen; and when the secondindicator is moved to the specified position, generate a photographicimage corresponding to the preview screen at a specified time.
 2. Theelectronic device of claim 1, wherein the plurality of candidate targetregions has at least one of: different sizes or different aspect ratios.3. The electronic device of claim 1, wherein to generate thephotographic image, the processor is configured to generate thephotographic image corresponding to the preview screen displayed on thedisplay device at the specified time, the specified time being a time atwhich the second indicator is moved to the specified position.
 4. Theelectronic device of claim 1, wherein to generate the photographicimage, the processor is configured to generate the photographic imagecorresponding to the preview screen displayed on the display device atthe specified time, the specified time being a time at which a userinput to generate a photographic image is received after the secondindicator is moved to the specified position.
 5. The electronic deviceof claim 1, wherein the processor is further configured to: identifywhether the second indicator is moved to the specified position; andidentify whether a guide cancelation intention is recognized when thesecond indicator is not moved to the specified position.
 6. Theelectronic device of claim 5, wherein the processor is furtherconfigured to display a third indicator to propose taking a picture witha current composition on the preview screen when the second indicator ismoved to the specified position.
 7. The electronic device of claim 5,wherein the processor is further configured to: identify whether theelectronic device is rotated by a specified angle in a specifieddirection when the second indicator is moved to the specified position,the specified direction being determined according to a form of thefirst indicator and a form of the second indicator; and display a thirdindicator to propose taking a picture with a current composition on thepreview screen when the electronic device is rotated by the specifiedangle in the specified direction.
 8. The electronic device of claim 5,wherein the processor is further configured to identify whether amovement of the electronic device corresponding to a user intention torequest a provision of a different guide for a recommended compositionis detected when the guide cancelation intention is recognized.
 9. Theelectronic device of claim 1, wherein the processor is furtherconfigured to: display a fourth indicator associated with a horizontalstate of the electronic device on the preview screen; and to generatethe photographic image, when the second indicator is moved to thespecified position and a current state of the electronic devicecorresponds to the horizontal state, the processor is configured togenerate the photographic image corresponding to the preview screen atthe specified time.
 10. The electronic device of claim 1, wherein toidentify the target region, the processor is configured to: identifywhether a maximum aesthetic score among the number of aesthetic scoresassigned to the plurality of candidate target regions is a thresholdvalue or greater; determine a candidate target region corresponding tothe maximum aesthetic score as the target region when the maximumaesthetic score is the threshold value or greater; and provide apredetermined rule-based recommended composition when the maximumaesthetic score is less than the threshold value, wherein to provide thepredetermined rule-based recommended composition, the processor isconfigured to detect at least one piece of information about a dominantline, a vanishing point, and a salience region in the preview screen andprovide the predetermined rule-based recommended composition based onthe detected at least one piece of information.
 11. An operating methodof an electronic device comprising an image sensor and a display device,the operating method comprising: displaying a first indicator at aspecified position within a preview screen of an image displayed on thedisplay device; identifying a target on the preview screen; identifyinga target region corresponding to the identified target among a pluralityof candidate target regions comprising the identified target based on anumber of aesthetic scores assigned to the plurality of candidate targetregions; displaying a second indicator corresponding to the identifiedtarget region on the preview screen; and when the second indicator ismoved to the specified position, generating a photographic imagecorresponding to the preview screen at a specified time.
 12. Theoperating method of claim 11, wherein the plurality of candidate targetregions has at least one of: different sizes or different aspect ratios.13. The operating method of claim 11, wherein the generating of thephotographic image comprises: generating the photographic imagecorresponding to the preview screen displayed on the display device atthe specified time, the specified time being a time at which the secondindicator is moved to the specified position.
 14. The operating methodof claim 11, wherein the generating of the photographic image comprises:generating the photographic image corresponding to the preview screendisplayed on the display device at the specified time, the specifiedtime being a time at which a user input to generate a photographic imageis received after the second indicator is moved to the specifiedposition.
 15. The operating method of claim 11, further comprising:identifying whether the second indicator is moved to the specifiedposition; and identifying whether a guide cancelation intention isrecognized when the second indicator is not moved to the specifiedposition.
 16. The operating method of claim 15, further comprisingdisplaying a third indicator to propose taking a picture with a currentcomposition on the preview screen when the second indicator is moved tothe specified position.
 17. The operating method of claim 15, furthercomprising: identifying whether the electronic device is rotated by aspecified angle in a specified direction when the second indicator ismoved to the specified position, the specified direction beingdetermined according to a form of the first indicator and a form of thesecond indicator; and displaying a third indicator to propose taking apicture with a current composition on the preview screen when theelectronic device is rotated by the specified angle in the specifieddirection.
 18. The operating method of claim 15, wherein furthercomprising identifying whether a movement of the electronic devicecorresponding to a user intention to request a provision of a differentguide for a recommended composition is detected when the guidecancelation intention is recognized.
 19. The operating method of claim11, further comprising displaying a fourth indicator associated with ahorizontal state of the electronic device on the preview screen, whereinthe generating of the photographic image comprises, when the secondindicator is moved to the specified position and a current state of theelectronic device corresponds to the horizontal state, generating thephotographic image corresponding to the preview screen at the specifiedtime.
 20. The operating method of claim 11, wherein the identifying ofthe target region comprises: identifying whether a maximum aestheticscore among the number of aesthetic scores assigned to the plurality ofcandidate target regions is a threshold value or greater; determining acandidate target region corresponding to the maximum aesthetic score asthe target region when the maximum aesthetic score is the thresholdvalue or greater; and providing a predetermined rule-based recommendedcomposition when the maximum aesthetic score is less than the thresholdvalue, wherein providing of the predetermined rule-based recommendedcomposition comprises detecting at least one piece of information abouta dominant line, a vanishing point, and a salience region in the previewscreen and providing the predetermined rule-based recommendedcomposition based on the detected at least one piece of information.